package com.sailfish.springbootdemo.controller.db4;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db4.ApproveH3c;
import com.sailfish.springbootdemo.service.db4.ApproveH3cService;
import com.sailfish.springbootdemo.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/h3cApprove")
public class H3cApproveController {

    @Autowired
    ApproveH3cService approveH3cService;

    @PostMapping("/insert")
    public Result insert(@RequestBody String data) {
        Result result = approveH3cService.insertOrUpdate(data);
        return result;
    }




}
